import React, {Component} from 'react';
import {Body, Button, Header, Left, Right, Text, Title, View} from 'native-base'
import PropTypes from 'prop-types';
import {ScrollView} from "react-native"

class HomeScreen extends Component {
  render() {
    return (
        <>
          <Header noShadow>
            <Left/>
            <Body style={{flex: 3}}>
            <Title>首页</Title>
            </Body>
            <Right/>
          </Header>
          <ScrollView>
            {
              Array.from(Array(10).keys()).map((v, index) =>
                  <View padder key={index}>
                    <Button block>
                      <Text>Home{index + 1}</Text>
                    </Button>
                  </View>)
            }
          </ScrollView>
        </>
    );
  }
}

HomeScreen.propTypes = {};

export default HomeScreen;
